package com.zhang.genericdemo.case2;

import com.zhang.genericdemo.case2.client.Client;
import com.zhang.genericdemo.case2.request.GoodsDetailRequest;
import com.zhang.genericdemo.case2.request.GoodsListRequest;
import com.zhang.genericdemo.case2.response.GoodsDetailResponse;
import com.zhang.genericdemo.case2.response.GoodsListResponse;

/**
 * @Author: ZhangGongMing
 * @CreateTime: 2025/5/18 21:34
 * @Description:
 * @Version: 1.0
 */
public class Main {

    public static void main(String[] args) {
        Client client = new Client();

        GoodsDetailRequest goodsDetailRequest = new GoodsDetailRequest();
        GoodsDetailResponse goodsDetailResponse = client.execute(goodsDetailRequest);
        System.out.println(goodsDetailResponse.toString());

        GoodsListRequest goodsListRequest = new GoodsListRequest();
        GoodsListResponse goodsListResponse = client.execute(goodsListRequest);
        System.out.println(goodsListResponse.toString());

    }
}
